from pathlib import Path


# 文件路径配置
class FilePath:
    ROOT = Path(__file__).absolute().parent.parent

    STATIC_ROOT = ROOT / "static"

    ICONS = STATIC_ROOT / "icons"

    IMAGES = STATIC_ROOT / "images"

    LOG_PATH = ROOT / "log"


# JWT配置
SECRET_KEY = "ZK8oCpkV5urQVtmXQId1qRGkhzljOTJ5qMCkmTZs1vucyE9PxQqoKquAjhqREGeU"
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE = 60 * 60 * 2  # 2小时

REFRESH_SECRET_KEY = "Zxiv1eCptKFIblq8jh9tH23dSe8rku4rayecwVD4yowNsizXYwrNaLoReykbzzWO"
REFRESH_TOKEN_EXPIRE = 60 * 60 * 24 * 7  # 7天

SYSTEM_IMAGE_FOLDER = 1

CUSTOMER_SECRET_KEY = "g8p54XVi05Nipb6m6V6EisTYIJnpghUuwuvPQfurtwLNANPRPODbW6pFZHGyYPM7"
CUSTOMER_TOKEN_EXPIRE = 60 * 60 * 24 * 30  # 30天

WEIXIN_APP_ID = "wxeda972d2ad6c0701"
WEIXIN_APP_SECRET = "c6124196ec86191d7eee52a09ab953ec"


class ImageConf:
    ThumbWidth = 480
    ThumbQuality = 95
    Quality = 95
